//
//  Request.swift
//  
//
//  Created by gongkai on 15/6/15.
//
//

import Foundation

class Request {
    var url:String
    var params:Dictionary<String,AnyObject> = [:]
    var method:String = "GET"
    
    init(url:String){
        self.url = url
    }
    
    convenience init(url:String , method:String){
        self.init(url: url)
        self.method = method
    }
    
    convenience init(url:String , params:Dictionary<String,AnyObject>){
        self.init(url: url)
        self.params = params
    }
    
    /**
    添加POST参数
    :param: key
    :param: value
    */
    func addParam(key:String,value:AnyObject){
        self.params[key] = value
    }
    
    
    func request(){
        
    }
    
    
}
